# Which compiler
# CC = gcc
# AR = ar
# AT = @

# source file
SRCS := ecc.c

OBJS = $(patsubst %.c,%.o,$(SRCS))

# Where are include files kept
INCLUDES += -I./

# Option for development
CFLAGS = -g -Wall
# CXXFLAGS = 
# Option for release
# CFLAGS = -O -Wall

# CFLAGS += -DDYMEM_DEBUG_ENABLE

TARGET = libeasy-ecc.a


all: $(OBJS)
	$(AT)$(AR) rcs $(TARGET) $^
	$(AT)mv $(TARGET) $(LIBS_PATH)

$(OBJS):%.o:%.c
	$(AT)$(CC) $(CFLAGS) $(INCLUDES) -c $^ -o $@


.PHONY: clean
clean: 
	$(AT)-rm -f $(OBJS)
